package com.lemonfish.mapper;

import com.diboot.core.mapper.BaseCrudMapper;
import com.lemonfish.pojo.entity.Role;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * 角色Mapper
 *
 * @author Lemonfish
 * @version 1.0
 * @date 2020-03-02
 * Copyright © ï¿½Å³ï¿½
 */
@Mapper
@Repository
public interface RoleMapper extends BaseCrudMapper<Role> {
    /**
     * 删除角色权限链接
     *
     * @param roleId
     * @param permissionId
     * @return
     */
    int deleteRight(@Param("roleId") long roleId,
                    @Param("permissionId") long permissionId);
}

